﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Dao;

partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// bak_wcs_task
    /// </summary>
    public DbSet<POBakWcsTask> BakWcsTasks { get; set; }
}

/// <summary>
/// bak_wcs_task
/// 表[bak_wcs_task]
/// </summary>
[Table("bak_wcs_task")]
public class POBakWcsTask
{
    /// <summary>
    /// 主键[bak_wcs_task.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// [bak_wcs_task.task_no)]
    /// </summary>
    [Column("task_no")]
    public int? TaskNo { get; set; }
    /// <summary>
    /// [bak_wcs_task.start_equip)]
    /// </summary>
    [Column("start_equip")]
    public long? StartEquip { get; set; }
    /// <summary>
    /// [bak_wcs_task.start_loc)]
    /// </summary>
    [Column("start_loc")]
    public long? StartLoc { get; set; }
    /// <summary>
    /// [bak_wcs_task.current_equip)]
    /// </summary>
    [Column("current_equip")]
    public long? CurrentEquip { get; set; }
    /// <summary>
    /// [bak_wcs_task.current_loc)]
    /// </summary>
    [Column("current_loc")]
    public long? CurrentLoc { get; set; }
    /// <summary>
    /// [bak_wcs_task.target_equip)]
    /// </summary>
    [Column("target_equip")]
    public long? TargetEquip { get; set; }
    /// <summary>
    /// [bak_wcs_task.target_loc)]
    /// </summary>
    [Column("target_loc")]
    public long? TargetLoc { get; set; }
    /// <summary>
    /// [bak_wcs_task.cache_loc)]
    /// </summary>
    [Column("cache_loc")]
    public long? CacheLoc { get; set; }
    /// <summary>
    /// [bak_wcs_task.task_status)]
    /// </summary>
    [Column("task_status")]
    public int? TaskStatus { get; set; }
    /// <summary>
    /// [bak_wcs_task.task_type)]
    /// </summary>
    [Column("task_type")]
    public int? TaskType { get; set; }
    /// <summary>
    /// [bak_wcs_task.task_group)]
    /// </summary>
    [Column("task_group")]
    public int? TaskGroup { get; set; }
    /// <summary>
    /// [bak_wcs_task.task_group_count)]
    /// </summary>
    [Column("task_group_count")]
    public int? TaskGroupCount { get; set; }
    /// <summary>
    /// [bak_wcs_task.task_group_index)]
    /// </summary>
    [Column("task_group_index")]
    public int? TaskGroupIndex { get; set; }
    /// <summary>
    /// [bak_wcs_task.order_id)]
    /// </summary>
    [Column("order_id")]
    public long? OrderId { get; set; }
    /// <summary>
    /// [bak_wcs_task.detail_id)]
    /// </summary>
    [Column("detail_id")]
    public long? DetailId { get; set; }
    /// <summary>
    /// [bak_wcs_task.sku_id)]
    /// </summary>
    [Column("sku_id")]
    public long? SkuId { get; set; }
    /// <summary>
    /// [bak_wcs_task.sku_code)]
    /// </summary>
    [Column("sku_code")]
    public string SkuCode { get; set; }
    /// <summary>
    /// [bak_wcs_task.is_abnormal)]
    /// </summary>
    [Column("is_abnormal")]
    public bool? IsAbnormal { get; set; }
    /// <summary>
    /// [bak_wcs_task.is_spray)]
    /// </summary>
    [Column("is_spray")]
    public int? IsSpray { get; set; }
    /// <summary>
    /// [bak_wcs_task.finish_loc)]
    /// </summary>
    [Column("finish_loc")]
    public long? FinishLoc { get; set; }
    /// <summary>
    /// [bak_wcs_task.finish_mode)]
    /// </summary>
    [Column("finish_mode")]
    public int? FinishMode { get; set; }
    /// <summary>
    /// [bak_wcs_task.finish_time)]
    /// </summary>
    [Column("finish_time")]
    public DateTime? FinishTime { get; set; }
    /// <summary>
    /// [bak_wcs_task.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// [bak_wcs_task.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// [bak_wcs_task.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// [bak_wcs_task.remark_memo)]
    /// </summary>
    [Column("remark_memo")]
    public string RemarkMemo { get; set; }
    /// <summary>
    /// [bak_wcs_task.tooltip_memo)]
    /// </summary>
    [Column("tooltip_memo")]
    public string TooltipMemo { get; set; }
    /// <summary>
    /// [bak_wcs_task.net_id)]
    /// </summary>
    [Column("net_id")]
    public long? NetId { get; set; }
    /// <summary>
    /// [bak_wcs_task.user_id)]
    /// </summary>
    [Column("user_id")]
    public long? UserId { get; set; }
    /// <summary>
    /// [bak_wcs_task.vehicle_task_status)]
    /// </summary>
    [Column("vehicle_task_status")]
    public int? VehicleTaskStatus { get; set; }
    /// <summary>
    /// [bak_wcs_task.vehicle_id)]
    /// </summary>
    [Column("vehicle_id")]
    public long? VehicleId { get; set; }
    /// <summary>
    /// [bak_wcs_task.LineTaskNo)]
    /// </summary>
    [Column("LineTaskNo")]
    public int? Linetaskno { get; set; }
    /// <summary>
    /// [bak_wcs_task.house_output_loc)]
    /// </summary>
    [Column("house_output_loc")]
    public long? HouseOutputLoc { get; set; }
    /// <summary>
    /// [bak_wcs_task.call_delete)]
    /// </summary>
    [Column("call_delete")]
    public int? CallDelete { get; set; }
    /// <summary>
    /// 记录生成任务的mesproduct信息
    /// [bak_wcs_task.mes_id)]
    /// </summary>
    [Column("mes_id")]
    public string MesId { get; set; }
    /// <summary>
    /// 任务初始类型 创建后不再改变 在biz中做区分
    /// [bak_wcs_task.start_task_type)]
    /// </summary>
    [Column("start_task_type")]
    public int? StartTaskType { get; set; }
    /// <summary>
    /// 出库优先级 10 最优先 
    /// [bak_wcs_task.out_order_priority)]
    /// </summary>
    [Column("out_order_priority")]
    public int? OutOrderPriority { get; set; }
    /// <summary>
    /// [bak_wcs_task.finish_type)]
    /// </summary>
    [Column("finish_type")]
    public int? FinishType { get; set; }
    /// <summary>
    ///人工操作状态0默认12人工删除13人工完成 15 wcs清理 [bak_wcs_task.finish_type)]
    /// </summary>
    [Column("task_wms_status")]
    public int? TaskWmsStatus { get; set; }
    /// <summary>
    /// 尺寸
    /// [wcs_task.task_wms_status)]
    /// </summary>
    [Column("innerdiameter")]
    public string Innerdiameter { get; set; }

}
